﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EditorialProyectos.DataAccess.Repositories
{
    public class ManagerRepository
    {

        private static AuditLogRepository _auditLogRepository;


        private static ProjectRepository _projectRepository;

        private static BenefitRepository _benefitRepository;

        private static CommentRepository _commentRepository;

        private static InvestmentRepository _investmentRepository;

        private static VoteRepository _voteRepository;

        private static CategoryRepository _categoryRepository;



        public static AuditLogRepository AuditLogRepository { get { if (_auditLogRepository == null) { _auditLogRepository = new AuditLogRepository(); } return _auditLogRepository; } }

        public static ProjectRepository ProjectRepository { get { if (_projectRepository == null) { _projectRepository = new ProjectRepository(); } return _projectRepository; } }

        public static BenefitRepository BenefitRepository { get { if (_benefitRepository == null) { _benefitRepository = new BenefitRepository(); } return _benefitRepository; } }

        public static CommentRepository CommentRepository { get { if (_commentRepository == null) { _commentRepository = new CommentRepository(); } return _commentRepository; } }

        public static InvestmentRepository InvestmentRepository { get { if (_investmentRepository == null) { _investmentRepository = new InvestmentRepository(); } return _investmentRepository; } }

        public static VoteRepository VoteRepository { get { if (_voteRepository == null) { _voteRepository = new VoteRepository(); } return _voteRepository; } }

        public static CategoryRepository CategoryRepository { get { if (_categoryRepository == null) { _categoryRepository = new CategoryRepository(); } return _categoryRepository; } }

    }
}
